Don't use g_list_next in gtkcontainer.c
authorMatthias Clasen <mclasen@redhat.com>
Mon, 19 Oct 2015 23:13:35 +0000 (19:13 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 20 Oct 2015 10:14:57 +0000 (06:14 -0400)
We generally access ->next directory.

gtk/gtkcontainer.c

index af1c741e2240e5bebbed2316367f331765f7816a..f469659a25d8602051e49f483eb8475fa84c368c 100644 (file)
@@ -3383,7 +3383,7 @@ gtk_container_set_focus_chain (GtkContainer *container,
                         G_CALLBACK (chain_widget_destroyed),
                         container);
 
-      tmp_list = g_list_next (tmp_list);
+      tmp_list = tmp_list->next;
     }
 
   chain = g_list_reverse (chain);
@@ -3464,7 +3464,7 @@ gtk_container_unset_focus_chain (GtkContainer  *container)
                                                 chain_widget_destroyed,
                                                 container);
 
-          tmp_list = g_list_next (tmp_list);
+          tmp_list = tmp_list->next;
         }
 
       g_list_free (chain);